
//发布者
export interface Publisher {
    avatar: string
    id: number
    username: string
    isAttention: number
    sex?: number
    isVerify: number
    isVip:number
	beAttentionSum?:number
}
//单个标签
export interface LabelItem {
    id: number,
    content: string,
    hot:number

}
//单个动态
export interface ArticleItem {
    isAnonymity: number
    commentSum: number
    createTime: string
    id: number
    isLiked: number
    likeSum: number
    pic: string[]
    publisher?: Publisher
    text: string
    updateTime: string
    viewSum: number
    labels: LabelItem[]
    video:number

}
//获取我发布的-单个动态
export interface MyArticleItem {
    isAnonymity: number
    commentSum: number
    id: number
    likeSum: number
    pic: string[]
    text: string
    publishTime: string
    viewSum: number
    isLiked: number
    labels: LabelItem[]
    visibility: number
    video:number
}
//获取我发布的动态结果
export interface MyArticleResult {
    list: MyArticleItem[]
    pageSum: number
    total: number
}
//根据id获取用户信息
export interface UserInfo {
    attentionSum: number
    visitorSum: number
    beAttentionSum: number
    avatar: string
    id: number
    registerDay: number
    username: string
    isAttention: number
    background: string
    isVerify: number
    sex?: number
    vip?: {
        deadline: string,
        remainDays: number,
    },
}

//socket消息
export interface SocketResult {
    type: string,
    data: string
}
//新用户消息格式(服务器)
export interface NewUserMessage {
    type: string,
    data: {
        content: string,
        type: number,
        fromUserId: number,
        id: number,
        time?: number//消息时长只有语音消息需要
    }
}
export interface WithDrawMessage{
	type: string,
	data: {
	    userId: number,
	    messageId: number,
	}
}
//聊天对象的用户消息
export interface ChatUserInfo {
    attentionSum: number,
    avatar: string,
    beAttentionSum: number,
    id: number,
    online: boolean,
    registerDay: number,
    username: string,
    isVerify: number,
    sex?: number
    vip?: {
        deadline: string,
        remainDays: number,
    },
    visitorSum: number,
}
//新消息格式(服务器)
export interface AlreadyReadMessage {
    type: string,
    data: {
        userId: number
    }
}
//消息格式
export interface MessageInfo {
    img: string,
    title: string,
    time: string,
    text: string
}
//消息保存(本地保存)消息内容
export interface MessageItem  {
    content: string,
    type: number,
    id: number,
    isMe?: boolean,
    createTime: string,
    isNotRead?: boolean,//是否为未读
    time?: number//消息的时长只有语音消息有
}
//单个消息组(本地保存)
export interface UserMessageGroup {
    fromUserId: number,
    badgeNumber: number,
    type: string,
    messages: MessageItem []
}
//聊天对象列表（单个）
export interface UserMessageListItem {
    avatar: string
    lastMessage: string
    lastMessageType: number
    lastTime: string
    online: boolean
    unReadSum: number
    userId: number
    username: string
}
//评论数据
export interface CommentDataItem {
	father:{
		content: string,
		createTime: string,
		id: number,
		isDeleted: number,
		likeSum: number,
		isLiked: number,
		publisher: {
		    id: number,
		    username: string,
		    avatar: string
		},
		responseSum: number,
		type: number,
	},
	sons:ReplyCommentDataItem[]
   
}
//评论的回复数据
export interface ReplyCommentDataItem {
    content: string
    fromUserId: number
    fromUsername: string
    id: number
    isDeleted: number
    toUserId: number
    toUsername: string
    type: number
    fromUserAvatar: string
}//互动消息
export interface InteractiveMessageData {
    activityId: number,
    userId: number,
    username: string,
    avatar: string,
    type: string,
    createTime: string
}
//互动消息列表
export interface InteractiveMessageList{
    unreadSum:number,
    data:InteractiveMessageData[]
}
export interface InteractiveMessage {
    type: string,
    data: InteractiveMessageData
}
//官方消息列表（项）
export interface OfficialNewsListItem {
    lastText: string
    lastTime: string
    type: string
    unreadSum: number
}
//官方消息
export interface OfficialNewsData {
    createTime: string
    pic: string
    text: string
}
//时间差
export interface timeDifference {
    DistanceNow: string,
    Detailed: string,
    MinuteDifference: number,
    HourDifference: number,
}
//单个铃声
export interface RingingToneItem {
    value: number,
    label: string,
    url: string
}
//单个盲盒
export interface BoxInfo {
	time: string,
	id: number,
	sex: number,
	text: string,
	userId: number,
	isCollected: number
	isDeleted: number
}
//page-tabs的单个标签
export interface TabLabelItem{
	title:string,
	badge?:number
}
//分页返回时的分页信息
export interface PageInfo<T>{
	currentPageNum: number
	hasNext: boolean
	hasPrevious: boolean
	totalNum: number
	totalPages: number
	list:T[]
}
//单个问题数据
export interface QuestionDataItem{
	answerSum:number			
	collectSum:number			
	id:number		
	isAnonymity:number			
	isCollected:number			
	isLiked:number			
	labels:LabelItem[]			
	likeSum:number			
	pics:string[]		
	publishTime:string		
	text:string			
	title:string		
	video:string[]		
	viewSum:number
	hotAnswer?:any[]
	publisher:{
		id:number
		avatar:string
		username:string
	}
}
//单个回答
export interface AnswerDataItem {
   issueComment:{
	   content: string
	   createTime: string
	   id: number
	   imgPaths?: string[]
	   isAnony: number
	   isDeleted: number
	   issueId: number
	   likeSum: number
	   responseSum: number
	   type: number
	   userId: number
	   videoPaths?: string[]
   }
   user:{
	   attentionSum: number
	   avatar: string
	   beAttentionSum: number
	   id: number
	   isAttention: number
	   isVerify: number
	   isVip: number
	   sex?: number
	   username: string
	   visitorSum: number
   }
   isLike:number
}
/**
 * 问题模块的通知消息
 */
export interface QuestionMessageItem{
	createTime: string
	eventId: number
	fromUserAvatar: string
	fromUserId:  number
	fromUserName: string
	issueId: number
	toUserId: number
	type: string
}
/**
 * 问题模块的通知消息列表
 */
export interface QuestionMessageList{
	unreadSum:number,
	data:QuestionDataItem[]
}